###############################################
# === xenomorph_captor_civics.txt ===
###############################################
###############################################
# XENOMORPH CAPTOR CIVICS (Megacorp, non-hive)
#
# Three corporate civics unlocked by the Xeno Traffickers origin theme.
# All require corporate authority and a non-gestalt empire.
###############################################

# --- Xeno Pleasure Products: trade/credits from captive Xenos as a product ---
civic_xeno_pleasure_products = {
	modification = no  # 3_69: Crow — all xenomorph civics creation-locked
	description = "civic_tooltip_xeno_pleasure_products_effects"

	potential = {
		authority = { value = auth_corporate }
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
	}
	possible = {
		authority = { value = auth_corporate }
	}

	modifier = {
		# The empire markets its captive Xenomorphs as a commercial product.
		planet_jobs_trade_produces_mult = 0.10
		planet_amenities_mult = 0.10
				planet_entertainers_produces_mult = 0.10
	}

	random_weight = { base = 0 }
	ai_weight = { base = 1 }
}

# --- Aliens of War: sells/uses captive Xenos as tools of war for profit ---
civic_xeno_aliens_of_war = {
	modification = no  # 3_69: Crow — all xenomorph civics creation-locked
	description = "civic_tooltip_xeno_aliens_of_war_effects"

	potential = {
		authority = { value = auth_corporate }
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
	}
	possible = {
		authority = { value = auth_corporate }
	}

	modifier = {
		# Renting out Xeno armies turns captive monsters into revenue.
		army_damage_mult = 0.15
		planet_jobs_trade_produces_mult = 0.05
		ship_weapon_damage = 0.05
	}

	random_weight = { base = 0 }
	ai_weight = { base = 1 }
}

# --- Treasured Queens: mostly captive Queens, few regular Xeno pops ---
civic_xeno_treasured_queens = {
	modification = no  # 3_69: Crow — all xenomorph civics creation-locked
	description = "civic_tooltip_xeno_treasured_queens_effects"

	potential = {
		authority = { value = auth_corporate }
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
	}
	possible = {
		authority = { value = auth_corporate }
	}

	modifier = {
		# The empire prizes captive Queens above common stock.
		planet_jobs_food_produces_mult = 0.10
		logistic_growth_mult = 0.10
		planet_pop_assembly_mult = 0.05
	}

	random_weight = { base = 0 }
	ai_weight = { base = 1 }
}

###############################################
# EXTRA CREATIVE CAPTOR CIVICS (non-Megacorp)
# Available to any non-gestalt empire, so the captor playstyle isn't
# Megacorp-only. Inspired by the exploitation themes of the reference mods.
###############################################

# --- Apex Menagerists: an empire that prizes its Xeno collection ---
civic_xeno_apex_menagerists = {
	modification = no  # 3_69: Crow — all xenomorph civics creation-locked
	description = "civic_tooltip_xeno_apex_menagerists_effects"

	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
	}
	possible = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
	}

	modifier = {
		# Living spectacle on a civilisational scale.
		planet_amenities_mult = 0.15
		planet_jobs_unity_produces_mult = 0.05
	}

	random_weight = { base = 1 }
	ai_weight = { base = 1 }
}

# --- Bioweapon Doctrine: an empire that fields captive Xenos as its edge ---
civic_xeno_bioweapon_doctrine = {
	modification = no  # 3_69: Crow — all xenomorph civics creation-locked
	description = "civic_tooltip_xeno_bioweapon_doctrine_effects"

	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
	}
	possible = {
		ethics = {
			NOT = { value = ethic_gestalt_consciousness }
		}
	}

	modifier = {
		# Captive Xenomorphs as a front-line weapon system.
		army_damage_mult = 0.20
		army_health = 0.10
	}

	random_weight = { base = 1 }
	ai_weight = { base = 1 }
}

# --- Xeno Husbandmasters: an empire built on breeding the perfect organism ---
civic_xeno_husbandmasters = {
	modification = no  # 3_69: Crow — all xenomorph civics creation-locked
	description = "civic_tooltip_xeno_husbandmasters_effects"

	potential = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
	}
	possible = {
		ethics = { NOT = { value = ethic_gestalt_consciousness } }
	}

	modifier = {
		# Mastery of the captive brood-cycle.
		planet_pop_assembly_mult = 0.15
		planet_jobs_food_produces_mult = 0.10
	}

	random_weight = { base = 1 }
	ai_weight = { base = 1 }
}

###############################################
# === xenomorph_civics.txt ===
###############################################
######################
###     Civics     ###
######################

#############
# Xenomorph #
#############

# Psychic Choir
civic_xenomorph_psychic_choir = {
	description = "civic_tooltip_xenomorph_psychic_choir_effects"
	modification = no
	potential = {
		authority = { value = auth_hive_mind }
	}
	possible = {
		always = yes
	}
	traits = {
		trait = trait_xenomorph
		trait = trait_xenomorph_psychic
	}
	modifier = {
		# trait_xenomorph_psychic already gives -0.10 empire size; this adds -0.10 more for a deliberate total of -0.20
		species_empire_size_mult = -0.10
		num_tech_alternatives_add = 1
	}
	random_weight = {
		base = 1
	}
	ai_weight = {
		base = 0
	}
}

# Carapace Ships
civic_xenomorph_carapace_ships = {
	description = "civic_tooltip_xenomorph_carapace_ships_effects"
	modification = no
	potential = {
		authority = { value = auth_hive_mind }
	}
	possible = {
		graphical_culture = {
			OR = {
				text = graphical_culture_tooltip_biological
				value = biogenesis_01
				value = biogenesis_02
			}
		}
	}
	traits = {
		trait = trait_xenomorph
		trait = trait_xenomorph_carapace
	}
	modifier = {
		ship_hull_regen_add_perc = 0.05
		ship_armor_regen_add_perc = 0.10
		# FIX 2026-07 (Option A): forge chain now open to all Xeno hives; this
		# civic instead boosts Carapace Weaver alloy output.
		# BALANCE FLAG: 0.15 is a placeholder for the balance pass.
		planet_xenomorph_carapace_weavers_produces_mult = 0.10
	}
	random_weight = {
		base = 1
	}
	ai_weight = {
		base = 0
	}
}

# Blood Mining
civic_xenomorph_blood_mining = {
	description = "civic_tooltip_xenomorph_blood_mining_effects"
	modification = no
	potential = {
		authority = { value = auth_hive_mind }
	}
	possible = {
		always = yes
	}
	traits = {
		trait = trait_xenomorph
		trait = trait_xenomorph_blood
	}
	modifier = {
		planet_miners_minerals_produces_add = 1
	}
	random_weight = {
		base = 1
	}
	ai_weight = {
		base = 0
	}
}


# Offspring & Egg Economy

# Matriarch's Hunger
civic_xenomorph_matriarchs_hunger = {
	description = "civic_tooltip_xenomorph_matriarchs_hunger_effects"
	modification = no
	potential = {
		authority = { value = auth_hive_mind }
	}
	possible = {
		civics = { NOT = { value = civic_xenomorph_patriarchs_dominion } }
	}
	traits = {
		trait = trait_xenomorph
		# Lustful Void compatibility: makes the Xenomorph species all-female.
		trait = trait_lv_all_female
	}
	modifier = {
		logistic_growth_mult = 0.10
		planet_pop_assembly_mult = 0.10
		planet_xenomorph_host_breeders_produces_mult = -0.25
		# Matriarchal hives are optimized around captive hosts, food extraction, and breeding infrastructure.
		# Dynamic no-slave/opposite-sex bonuses are handled by xenomorph_lustful_void_compat_events.txt.
		planet_jobs_produces_mult = -0.05
		planet_jobs_food_produces_mult = 0.10
		pop_livestock_bonus_workforce_mult = 0.15


		# Xenomorph slave pleasure/entertainment jobs count as sex jobs for this civic.
		planet_xenomorph_host_breeders_produces_mult = 0.35  # 3_63: merged 2 duplicates (F5 category-share)
	}
	random_weight = {
		base = 1
	}
	ai_weight = {
		base = 0
	}
}


# Patriarch's Dominion
civic_xenomorph_patriarchs_dominion = {
	description = "civic_tooltip_xenomorph_patriarchs_dominion_effects"
	modification = no
	potential = {
		authority = { value = auth_hive_mind }
	}
	possible = {
		civics = { NOT = { value = civic_xenomorph_matriarchs_hunger } }
	}
	traits = {
		trait = trait_xenomorph
		# Lustful Void compatibility: makes the Xenomorph species all-male.
		trait = trait_lv_all_male
	}
	modifier = {
		logistic_growth_mult = -0.10
		planet_pop_assembly_mult = -0.05
		planet_xenomorph_host_breeders_produces_mult = 0.50
		# Patriarchal hives are more aggressive but still depend on captive host populations.
		# Dynamic no-slave/opposite-sex bonuses are handled by xenomorph_lustful_void_compat_events.txt.
		planet_jobs_produces_mult = -0.05
		planet_jobs_food_produces_mult = 0.10
		pop_livestock_bonus_workforce_mult = 0.15
		army_attack_damage_mult = 0.15
		army_defense_damage_mult = 0.05


		# Xenomorph slave pleasure/entertainment jobs count as sex jobs for this civic.
		planet_xenomorph_host_breeders_produces_mult = 0.35  # 3_63: merged 2 duplicates (F5 category-share)
	}
	random_weight = {
		base = 1
	}
	ai_weight = {
		base = 0
	}
}


# Brood Extermination Mandate
# Genocidal Total-War hive. Total-War CB / purge / no-diplomacy are granted via the four trigger
# overrides in common/scripted_triggers/xenomorph_zzz_total_war_overrides.txt. Mutually exclusive
# with vanilla Devouring Swarm ONLY; stacks freely with both breeding civics (standing decision). Modifier values are deliberately
# conservative balance-pass placeholders (modelled on Devouring Swarm's military profile).
civic_xenomorph_brood_extermination_mandate = {
	description = "civic_tooltip_xenomorph_brood_extermination_mandate_effects"
	modification = no
	potential = {
		authority = { value = auth_hive_mind }
	}
	possible = {
		civics = {
			NOT = { value = civic_hive_devouring_swarm }
		}
	}
	traits = {
		trait = trait_xenomorph
	}
	modifier = {
		councilor_gestalt_legion_exp_gain = @gestalt_civic_node_xp_rate
		country_starbase_influence_cost_mult = -0.5
		ship_hull_mult = 0.25
		ship_hull_regen_add_perc = 0.05
		ship_armor_regen_add_perc = 0.05
		army_damage_mult = 0.33
		category_biology_research_speed_mult = 0.20
		starbase_shipyard_build_cost_mult = -0.25
		country_naval_cap_mult = 0.33
	}
	random_weight = {
		base = 1
	}
	ai_weight = {
		base = 0
	}
}
